<template>
  <div class="identity-box">

    <v-step :list="barList" :titleType=4></v-step>

    <div class="line-box"></div>
    <div class="wrap-box">
      <div class="title1">姓名:</div>
      <div class="title2" v-model="certName">{{certName}}</div>
    </div>
    <div class="wrap-box">
      <div class="title1">身份证号:</div>
      <div class="title2" v-model="certNo">{{certNo}}</div>
    </div>

    <div class="btn-box">
      <button type="button" class="btn" @click="nextStep">下一步</button>
    </div>
  </div>

</template>

<script>
  import flowStep from "../../components/flow"

  export default {
    data() {
      return {
        certName: "",
        certNo: "",
        barList: ['身份证信息', '银行卡扫描', '银行卡信息', '设置提现密码']
      }
    },
    mounted() {
      let certNo = sessionStorage.getItem("identity_no");
      let certName = sessionStorage.getItem("bank_user_name");
      if (certName != "" && certName != undefined) {
        this.certName = certName;
      }
      if (certNo != "" && certNo != undefined) {
        this.certNo = this.$decruption(certNo);
      }
    },
    methods: {
      nextStep() {
        this.$router.push("/cardscan_asce");
      }
    },
    components: {
      "v-step": flowStep
    }
  }
</script>

<style lang="stylus" scoped>
  .identity-box
    width: 100%
    height: 100%
    overflow: hidden
    .line-box
      margin-top: 0.493rem
      height: 0.28rem
      background: rgba(242, 242, 242, 1)
    .wrap-box
      display: flex
      align-items: center
      margin-left: 3.6%
      width: 96.4%
      height: 1.333rem
      border-bottom: 1px solid rgba(230, 230, 230, 1)
      .title1
        display: flex
        align-items: center
        font-size: 0.44rem
        color: rgba(68, 68, 68, 1)
      .title2
        display: flex
        align-items: center
        padding-left: 0.107rem
        font-size: 0.44rem
        color: rgba(68, 68, 68, 1)
    .btn-box
      position: fixed
      bottom: 0.48rem
      width: 100%
      height: 1.333rem
      text-align: center
      .btn
        width: 92.53%
        height: 1.333rem
        line-height: 1.333rem
        background: rgba(60, 175, 255, 1)
        border-radius: 0.107rem
        font-size: 0.48rem
        color: rgba(255, 255, 255, 1)
</style>
